package com.biqee.action.admin;

import java.util.List;

import com.biqee.action.base.BaseAction;
import com.biqee.model.common.PageInfoObject;
import com.biqee.model.db.BqQuery;
import com.biqee.service.bq.BqQueryService;

public class QueryAction extends BaseAction{

	/**
	 * 
	 */
	private static final long serialVersionUID = -271061134288684156L;
	private BqQueryService bqQueryService ;
	
	private PageInfoObject page ;
	
	private List<BqQuery> queryList;
	
	private String tuanId ;
	
	public String getTuanId() {
		return tuanId;
	}


	public void setTuanId(String tuanId) {
		this.tuanId = tuanId;
	}


	public BqQueryService getBqQueryService() {
		return bqQueryService;
	}


	public String list(){
	page = new PageInfoObject();
	if(tuanId!=null){
		queryList =	bqQueryService.listByPage(page,tuanId);
	}else{
		queryList =	bqQueryService.listByPage(page);
	}
	
	return "queryList";
	}
	
	
	public List<BqQuery> getQueryList() {
		return queryList;
	}


	public void setQueryList(List<BqQuery> queryList) {
		this.queryList = queryList;
	}


	public String manage(){
		
		return "quertManage";
	}


	public void setBqQueryService(BqQueryService bqQueryService) {
		this.bqQueryService = bqQueryService;
	}


	public PageInfoObject getPage() {
		return page;
	}


	public void setPage(PageInfoObject page) {
		this.page = page;
	}
	
	

}
